package com.training.java.core.collections.laptop.pre15;

public class Laptop {
	private String company;
	private String model;
	private String os;
	private String processor;

	public Laptop()
	{
		
	}
	public Laptop(String company,String model,String processor)
	{
		this.company=company;
		this.model=model;
		this.processor=processor;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getCompany() {
		return company;
	}

	public String getModel() {
		return model;
	}

	public String getProcessor() {
		return processor;
	}
	
	@Override
	public boolean equals(Object obj)
	{
		if (obj instanceof Laptop)
		{
			Laptop laptop=(Laptop)obj;
		    return ((this.getCompany().equals(laptop.getCompany())) && (this.getModel().equals(laptop.getModel())));
		}
		else
			return false;
	}

}
